import request from '@/utils/request.js'

const login = ({ phone, password }) => {
  return request.post('/member/login', { phone, password })
}
const signup = (memberInfo) => {
  return request.post('/member/singup', memberInfo)
}
const logout = (token) => {
  return request.post('/member/logout', { token })
}
const getInfo = () => {
  return request.get('/member/info')
}
export { login, signup, logout, getInfo }
